package ga.gates;

/**
 * The Class AndGate.
 */
public class AndGate extends Gates {

	/* (non-Javadoc)
	 * @see ga.gates.Gates#eval(boolean, boolean)
	 */
	@Override
	public boolean eval(boolean input1, boolean input2) {
		return input1 && input2;
	}

	/* (non-Javadoc)
	 * @see ga.gates.Gates#toString()
	 */
	@Override
	public String toString() {
		return "AND";
	}

}
